/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package managedbeans;

import Entities.Marquage;
import Entities.Modelerdp;
import SessionBeans.MarquageManager;
import javax.ejb.EJB;
import javax.inject.Named;
import javax.enterprise.context.SessionScoped;
import java.io.Serializable;
import java.util.List;


/**
 *
 * @author Dell
 */
@Named(value = "marquageMBean")
@SessionScoped
public class MarquageMBean implements Serializable {
    @EJB
    private MarquageManager marquageManager;
   ModelerdpMBean m;
    
    /** Creates a new instance of MarquageMBean */
    public MarquageMBean() {
    }
   
    public List<Marquage> getAllMarquage()
    {
        if(m.modele1!=null){
     return marquageManager.findByIdmodule(m.modele1);  
        }
        return null;
      // return  marquageManager.getAllRdpMarquages();
       // return m.modele1;
    }
  /* public List<Marquage> getbyIdm()
   {
       String idm=m.variable;
       System.out.println(idm);
     return marquageManager.findByIdmodule(idm);   
   }*/
    
     public String back()
     {
         return "ModeleRDP";
     }
     public String creeMarquage() {
         return "AjoutMarquage";
    }
}
